<template>
  <div>
    <el-bread></el-bread>
    <v-list @edit="edit" class="box"></v-list>
    <v-dialog ref="diaInfo" @cancel="cancel" :isShow="isShow"></v-dialog>
  </div>
</template>

<script>
import vList from "./list.vue";
import vDialog from "./dialog.vue";
export default {
  data() {
    return {
      isShow: false,
    };
  },
  components: {
    vList,
    vDialog,
  },
  methods: {
    cancel(e) {
      this.isShow = e;
    },
    edit(e) {
      this.isShow = true;
      this.$refs.diaInfo.lookup(e);
    },
  },
};
</script>

<style lang="less"scoped>
.box {
  margin-top: 20px;
}
</style>
